//
//  ParametersViewModel.swift
//  Automobile
//
//  Created by erkebulan elzhan on 7/22/20.
//  Copyright © 2020 erkebulan elzhan. All rights reserved.
//

import UIKit

class ParametersViewModel {
    
    var input: Input
    
    var icon: UIImage? {
        return input.icon ?? nil
    }
    
    var type: String? {
        return input.type ?? nil
    }
    
    var placeholder: String {
        return input.placeholder
    }
    var value: String? {
        get {
            return input.value ?? nil
        }
        set { }
    }
    
    var custom: String?
    
    
    // Dependency Injection
    init (input: Input, custom: String?=nil) {
        self.input = input
        self.custom = custom ?? nil
    }
}
